﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlogModel.DAL
{
    public class BlogRollDB
    {
        public static List<BlogRoll> GetBlogRollsOnUserId(int userId)
        {
            return DB.Context.BlogRollSet
                .Where(b => b.Blog.UserId == userId && !b.IsDeleted).ToList();
        }
    }
}
